/**
 * Order Item entity.
 */
package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class OrderItem extends Model {

	@Required
	@ManyToOne
	public Order userOrder;
	
	@Required
	public Print print;
	
	@Required
	public Group itemGroup;
	
	@Required
	public Integer quantity;
	
	@Required
	public ItemSize size;
	
	@Required
	public ItemColor color;
	
	@Required
	public Integer finalPrice;

	public OrderItem(Order userOrder, Print print, Group itemGroup, Integer quantity,
			ItemSize size, ItemColor color, Integer finalPrice) {
		this.userOrder = userOrder;
		this.print = print;
		this.itemGroup = itemGroup;
		this.quantity = quantity;
		this.size = size;
		this.color = color;
		this.finalPrice = finalPrice;
	}
	
	
}